-
Notifications
You must be signed in to change notification settings - Fork 10
feat(modules/claude-code): make the module ready for Coder Tasks #160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
cb31cbf
to
33489fc
Compare
33489fc
to
6c3c2f0
Compare
this is a hack for a demo... preinstall and postinstall script will increase/decrease this time and I aim to find a better way to do this in the feature
4d634bf
to
88f4ec4
Compare
88f4ec4
to
64e7103
Compare
❌ Version Bump Validation FailedBump Type: Module versions need to be updated but haven't been bumped yet. Required Actions:
Script Output:
|
73fc656
to
eae5cb5
Compare
eae5cb5
to
d7639fb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm going to pull this branch and test this out because I have been seeing all of the agentapi stuff and I am very interested to see how it runs.
@@ -176,9 +171,58 @@ resource "coder_script" "claude_code" { | |||
npm install -g @anthropic-ai/claude-code@${var.claude_code_version} | |||
fi | |||
if ! command_exists node; then | |||
echo "Error: Node.js is not installed. Please install Node.js manually." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have noticed that sometimes it is better to make an attempt to install node if it is not installed before the claude-code module starts rolling during workspace start.
This might just be something that only I have experienced, but if you dont do this it will make claude code fail to start almost every time unless you have node available in your workspace before the claude code module runs its script. ( Even adding the node module to your template, does not resolve this unless somehow the node module installs first in the order which it never does for me.)
Related to coder/internal#700
This PR:
CODER_MCP_AI_AGENTAPI_URL
before runningcoder exp mcp configure claude-code
)Claude Code Web
workspace app)experiment_cli_app
module variable controls its presencecoder_ai_task
resource, which makes the module compatible with the new Coder Tasks feature--continue
flag. Previously the module's implementation was a bit buggedNote: the filebrowser tests stopped passing because of an upstream update in the filebrowser project around required password length. I confirmed they are not related to this PR's changes.